var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, o, n) {
    var r, a = arguments.length, c = a < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, n); else for (var i = t.length - 1; 0 <= i; i--) (r = t[i]) && (c = (a < 3 ? r(c) : 3 < a ? r(e, o, c) : r(e, o)) || c);
    return 3 < a && c && Object.defineProperty(e, o, c), c;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("GameData"), s = e("UIManager"), c = cc._decorator, l = c.ccclass, d = (c.property, 
function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.fillRange = 0, t.isEffect = !1, t;
    }
    return i(t, e), t.prototype.onLoad = function() {}, t.prototype.onClick = function() {
        var t = this;
        r.GD.isChristmasReward ? s.default.getInstance().showToast({
            str: "请明天再来"
        }) : (this.isEffect || cc.tween(this.node).to(.1, {
            scale: 1.1
        }).to(.1, {
            scale: 1
        }).call(function() {
            t.isEffect = !1;
        }).start(), this.fillRange < .3 ? this.fillRange += .06 * Math.random() + .08 : this.fillRange < .8 ? this.fillRange += .04 * Math.random() + .06 : this.fillRange < 1 ? this.fillRange += .02 * Math.random() + .06 : s.default.getInstance().loadPnl("christmasReward"));
    }, t.prototype.start = function() {}, a([ l ], t);
}(cc.Component));

n.default = d;